/*
 * VCResource.h
 *
 *  Created on: 2013. 9. 11.
 *      Author: mega@gamevil.com
 */

#ifndef VCRESOURCE_H_
#define VCRESOURCE_H_

#include <map>
#include "../engine.h"

namespace ProjectZ { namespace NResource {

class VCResource
{
public:
	struct Flyweight
	{
		int _VC_IDX;
		int _VC_DIV_1;
		int _VC_DIV_2;
		int _VC_DIV_3;
		Toolkit::Str<100> _VC_DESC;
		int _VC_PRICE;
		int _VC_KIND;
	};

public:
	VCResource();
	virtual ~VCResource();

	bool LoadResource();
	Flyweight * GetFly(int vcIndex);

private:
	void	Clear();

private:
	typedef std::map<int, Flyweight *>	DATATREE;
	DATATREE	clsFlyTree;
};

} /* NResource */ } /* ProjectZ */

#endif /* VCRESOURCE_H_ */
